<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>触摸事件类型</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background: blue;
        }
    </style>
</head>
<body>
    <div id="box"></div>
    <script>
        box.ontouchstart = function(){
            console.log('触摸开始')
        }
        box.ontouchend = function(){
            console.log('触摸结束')
        }
        box.ontouchmove = function(){
            console.log('触摸移动')
        }
        // 触摸过程中被其他应用中断
        box.ontouchcancle = function(){
            console.log('触摸取消')
        }
    </script>
</body>
</html>